package com.rk.section1;

public class TragedyCalculator extends PerformanceCalculator {
    public TragedyCalculator(Performance performance, Play play) {
        super(performance, play);
    }

    @Override
    public int amountFor() {
        return performance.getAudience() > 30 ? 10000 + 1000 * performance.getAudience() : 40000;
    }
}
